package com.yanqu.road.server.command;

import com.google.protobuf.AbstractMessage;
import com.google.protobuf.InvalidProtocolBufferException;
import com.yanqu.road.pb.syncMessage.SyncMessage;

import java.util.Random;
import java.util.concurrent.CompletableFuture;


public interface ICrossServiceCommand {

     //非商会分组的活动，或者其他
     default CompletableFuture<AbstractMessage.Builder<?>> execute(SyncMessage.Request request) throws InvalidProtocolBufferException {
          return null;
     }

     //商会分组的活动，从区服来
     default CompletableFuture<AbstractMessage.Builder<?>> execute(SyncMessage.Request request, int activityId, int groupId) throws InvalidProtocolBufferException{
          return null;
     }
}


